package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class NewsRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public NewsRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andNewnoIsNull() {
            addCriterion("newno is null");
            return (Criteria) this;
        }

        public Criteria andNewnoIsNotNull() {
            addCriterion("newno is not null");
            return (Criteria) this;
        }

        public Criteria andNewnoEqualTo(String value) {
            addCriterion("newno =", value, "newno");
            return (Criteria) this;
        }

        public Criteria andNewnoNotEqualTo(String value) {
            addCriterion("newno <>", value, "newno");
            return (Criteria) this;
        }

        public Criteria andNewnoGreaterThan(String value) {
            addCriterion("newno >", value, "newno");
            return (Criteria) this;
        }

        public Criteria andNewnoGreaterThanOrEqualTo(String value) {
            addCriterion("newno >=", value, "newno");
            return (Criteria) this;
        }

        public Criteria andNewnoLessThan(String value) {
            addCriterion("newno <", value, "newno");
            return (Criteria) this;
        }

        public Criteria andNewnoLessThanOrEqualTo(String value) {
            addCriterion("newno <=", value, "newno");
            return (Criteria) this;
        }

        public Criteria andNewnoLike(String value) {
            addCriterion("newno like", value, "newno");
            return (Criteria) this;
        }

        public Criteria andNewnoNotLike(String value) {
            addCriterion("newno not like", value, "newno");
            return (Criteria) this;
        }

        public Criteria andNewnoIn(List<String> values) {
            addCriterion("newno in", values, "newno");
            return (Criteria) this;
        }

        public Criteria andNewnoNotIn(List<String> values) {
            addCriterion("newno not in", values, "newno");
            return (Criteria) this;
        }

        public Criteria andNewnoBetween(String value1, String value2) {
            addCriterion("newno between", value1, value2, "newno");
            return (Criteria) this;
        }

        public Criteria andNewnoNotBetween(String value1, String value2) {
            addCriterion("newno not between", value1, value2, "newno");
            return (Criteria) this;
        }

        public Criteria andNewnameIsNull() {
            addCriterion("newname is null");
            return (Criteria) this;
        }

        public Criteria andNewnameIsNotNull() {
            addCriterion("newname is not null");
            return (Criteria) this;
        }

        public Criteria andNewnameEqualTo(String value) {
            addCriterion("newname =", value, "newname");
            return (Criteria) this;
        }

        public Criteria andNewnameNotEqualTo(String value) {
            addCriterion("newname <>", value, "newname");
            return (Criteria) this;
        }

        public Criteria andNewnameGreaterThan(String value) {
            addCriterion("newname >", value, "newname");
            return (Criteria) this;
        }

        public Criteria andNewnameGreaterThanOrEqualTo(String value) {
            addCriterion("newname >=", value, "newname");
            return (Criteria) this;
        }

        public Criteria andNewnameLessThan(String value) {
            addCriterion("newname <", value, "newname");
            return (Criteria) this;
        }

        public Criteria andNewnameLessThanOrEqualTo(String value) {
            addCriterion("newname <=", value, "newname");
            return (Criteria) this;
        }

        public Criteria andNewnameLike(String value) {
            addCriterion("newname like", value, "newname");
            return (Criteria) this;
        }

        public Criteria andNewnameNotLike(String value) {
            addCriterion("newname not like", value, "newname");
            return (Criteria) this;
        }

        public Criteria andNewnameIn(List<String> values) {
            addCriterion("newname in", values, "newname");
            return (Criteria) this;
        }

        public Criteria andNewnameNotIn(List<String> values) {
            addCriterion("newname not in", values, "newname");
            return (Criteria) this;
        }

        public Criteria andNewnameBetween(String value1, String value2) {
            addCriterion("newname between", value1, value2, "newname");
            return (Criteria) this;
        }

        public Criteria andNewnameNotBetween(String value1, String value2) {
            addCriterion("newname not between", value1, value2, "newname");
            return (Criteria) this;
        }

        public Criteria andNewstateIsNull() {
            addCriterion("newstate is null");
            return (Criteria) this;
        }

        public Criteria andNewstateIsNotNull() {
            addCriterion("newstate is not null");
            return (Criteria) this;
        }

        public Criteria andNewstateEqualTo(String value) {
            addCriterion("newstate =", value, "newstate");
            return (Criteria) this;
        }

        public Criteria andNewstateNotEqualTo(String value) {
            addCriterion("newstate <>", value, "newstate");
            return (Criteria) this;
        }

        public Criteria andNewstateGreaterThan(String value) {
            addCriterion("newstate >", value, "newstate");
            return (Criteria) this;
        }

        public Criteria andNewstateGreaterThanOrEqualTo(String value) {
            addCriterion("newstate >=", value, "newstate");
            return (Criteria) this;
        }

        public Criteria andNewstateLessThan(String value) {
            addCriterion("newstate <", value, "newstate");
            return (Criteria) this;
        }

        public Criteria andNewstateLessThanOrEqualTo(String value) {
            addCriterion("newstate <=", value, "newstate");
            return (Criteria) this;
        }

        public Criteria andNewstateLike(String value) {
            addCriterion("newstate like", value, "newstate");
            return (Criteria) this;
        }

        public Criteria andNewstateNotLike(String value) {
            addCriterion("newstate not like", value, "newstate");
            return (Criteria) this;
        }

        public Criteria andNewstateIn(List<String> values) {
            addCriterion("newstate in", values, "newstate");
            return (Criteria) this;
        }

        public Criteria andNewstateNotIn(List<String> values) {
            addCriterion("newstate not in", values, "newstate");
            return (Criteria) this;
        }

        public Criteria andNewstateBetween(String value1, String value2) {
            addCriterion("newstate between", value1, value2, "newstate");
            return (Criteria) this;
        }

        public Criteria andNewstateNotBetween(String value1, String value2) {
            addCriterion("newstate not between", value1, value2, "newstate");
            return (Criteria) this;
        }

        public Criteria andNewimgIsNull() {
            addCriterion("newimg is null");
            return (Criteria) this;
        }

        public Criteria andNewimgIsNotNull() {
            addCriterion("newimg is not null");
            return (Criteria) this;
        }

        public Criteria andNewimgEqualTo(String value) {
            addCriterion("newimg =", value, "newimg");
            return (Criteria) this;
        }

        public Criteria andNewimgNotEqualTo(String value) {
            addCriterion("newimg <>", value, "newimg");
            return (Criteria) this;
        }

        public Criteria andNewimgGreaterThan(String value) {
            addCriterion("newimg >", value, "newimg");
            return (Criteria) this;
        }

        public Criteria andNewimgGreaterThanOrEqualTo(String value) {
            addCriterion("newimg >=", value, "newimg");
            return (Criteria) this;
        }

        public Criteria andNewimgLessThan(String value) {
            addCriterion("newimg <", value, "newimg");
            return (Criteria) this;
        }

        public Criteria andNewimgLessThanOrEqualTo(String value) {
            addCriterion("newimg <=", value, "newimg");
            return (Criteria) this;
        }

        public Criteria andNewimgLike(String value) {
            addCriterion("newimg like", value, "newimg");
            return (Criteria) this;
        }

        public Criteria andNewimgNotLike(String value) {
            addCriterion("newimg not like", value, "newimg");
            return (Criteria) this;
        }

        public Criteria andNewimgIn(List<String> values) {
            addCriterion("newimg in", values, "newimg");
            return (Criteria) this;
        }

        public Criteria andNewimgNotIn(List<String> values) {
            addCriterion("newimg not in", values, "newimg");
            return (Criteria) this;
        }

        public Criteria andNewimgBetween(String value1, String value2) {
            addCriterion("newimg between", value1, value2, "newimg");
            return (Criteria) this;
        }

        public Criteria andNewimgNotBetween(String value1, String value2) {
            addCriterion("newimg not between", value1, value2, "newimg");
            return (Criteria) this;
        }

        public Criteria andAnoIsNull() {
            addCriterion("ano is null");
            return (Criteria) this;
        }

        public Criteria andAnoIsNotNull() {
            addCriterion("ano is not null");
            return (Criteria) this;
        }

        public Criteria andAnoEqualTo(String value) {
            addCriterion("ano =", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotEqualTo(String value) {
            addCriterion("ano <>", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThan(String value) {
            addCriterion("ano >", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThanOrEqualTo(String value) {
            addCriterion("ano >=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThan(String value) {
            addCriterion("ano <", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThanOrEqualTo(String value) {
            addCriterion("ano <=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLike(String value) {
            addCriterion("ano like", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotLike(String value) {
            addCriterion("ano not like", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoIn(List<String> values) {
            addCriterion("ano in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotIn(List<String> values) {
            addCriterion("ano not in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoBetween(String value1, String value2) {
            addCriterion("ano between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotBetween(String value1, String value2) {
            addCriterion("ano not between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andNewdescIsNull() {
            addCriterion("newdesc is null");
            return (Criteria) this;
        }

        public Criteria andNewdescIsNotNull() {
            addCriterion("newdesc is not null");
            return (Criteria) this;
        }

        public Criteria andNewdescEqualTo(String value) {
            addCriterion("newdesc =", value, "newdesc");
            return (Criteria) this;
        }

        public Criteria andNewdescNotEqualTo(String value) {
            addCriterion("newdesc <>", value, "newdesc");
            return (Criteria) this;
        }

        public Criteria andNewdescGreaterThan(String value) {
            addCriterion("newdesc >", value, "newdesc");
            return (Criteria) this;
        }

        public Criteria andNewdescGreaterThanOrEqualTo(String value) {
            addCriterion("newdesc >=", value, "newdesc");
            return (Criteria) this;
        }

        public Criteria andNewdescLessThan(String value) {
            addCriterion("newdesc <", value, "newdesc");
            return (Criteria) this;
        }

        public Criteria andNewdescLessThanOrEqualTo(String value) {
            addCriterion("newdesc <=", value, "newdesc");
            return (Criteria) this;
        }

        public Criteria andNewdescLike(String value) {
            addCriterion("newdesc like", value, "newdesc");
            return (Criteria) this;
        }

        public Criteria andNewdescNotLike(String value) {
            addCriterion("newdesc not like", value, "newdesc");
            return (Criteria) this;
        }

        public Criteria andNewdescIn(List<String> values) {
            addCriterion("newdesc in", values, "newdesc");
            return (Criteria) this;
        }

        public Criteria andNewdescNotIn(List<String> values) {
            addCriterion("newdesc not in", values, "newdesc");
            return (Criteria) this;
        }

        public Criteria andNewdescBetween(String value1, String value2) {
            addCriterion("newdesc between", value1, value2, "newdesc");
            return (Criteria) this;
        }

        public Criteria andNewdescNotBetween(String value1, String value2) {
            addCriterion("newdesc not between", value1, value2, "newdesc");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}